//
// Created by Arikes on 9/19/21.
// 建造者模式

#ifndef DESIGNERMODE_BUILDER_H
#define DESIGNERMODE_BUILDER_H

#include "Product.h"
namespace BuildMode{
    class Builder{
    public:
        Product getResult()
        {
            return _product;
        }

        virtual void buildPartA() = 0;
        virtual void buildPartB() = 0;
        virtual void buildPartC() = 0;

    protected:
        Product _product;
    };
};
#endif //DESIGNERMODE_BUILDER_H
